<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/Function_index.php");
$id = isset($_GET['id'])?intval($_GET['id']):0;
if($id==0 || $id!=$_GET['id']){
	echo "<script>window.location.href='/';</script>";exit;
}
$info = getginfo($id);
if(!$info || $info['gtotal']<1){
	echo "<script>window.location.href='/';</script>";exit;
}
$gg = false;
$tpl->assign("ginfo",$info);
$tpl->assign("gg",$gg);
$tpl->assign("plist",$info['gthumb1']);
$tpl->assign('results',$results);
$tpl->show("goods");
?>